package com.example.demo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    //时间戳转换（毫秒）]
    public static String timechange(Date dt) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S");
        String res = sdf.format(dt);
        return res;
    }
}
